package com.gxa.medical.service.impl;

import com.gxa.medical.mapper.UserDetailsMapper;
import com.gxa.medical.mapper.UserMapper;
import com.gxa.medical.pojo.User;
import com.gxa.medical.pojo.UserDetails;
import com.gxa.medical.service.UserDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service
@Transactional(rollbackFor = {Throwable.class})
public class UserDetailsServiceImpl implements UserDetailsService {
    @Autowired
    private UserDetailsMapper userDetailsMapper;
    @Override
    public Integer insertUserDetails(Map map) {
        return userDetailsMapper.insertUserDetails(map);
    }


    @Override
    public Integer countAll() {
        return userDetailsMapper.countAll();
    }
}
